public class problem {
    public static int solution(int[][] arr) {
        int row=arr.length;
        int col=arr[0].length;
        int[][] t = new int[row][col];
        for(int i=0;i<row;i++) {
            for(int n=0;n<col;n++) {
                if(i==0||n==0) {
                    t[i][n]=arr[i][n];
                } else{
                    t[i][n]=
                }
            }
        }
    }
}
